import request from '@/request/index'
import { PayInfo, PayCollect } from './type'

enum URL {
  DETAIL_RECORD = 'bill/variation/record',
  DETAIL_RECORD_COLLECT = 'bill/variation/record/month'
}

export const getRecordList = (date: string) => request.get<PayInfo[]>(URL.DETAIL_RECORD, { date }) // 获取记录
export const getRecordCollect = (date: string) => request.get<PayCollect>(URL.DETAIL_RECORD_COLLECT, { date }) // 获取记录统计